import { createStore } from "vuex";
// 创建一个新的 store 实例
const store = createStore({
  state() {
    return {
      //用户信息
      user: {},
      options: {},
      headerHeight: 0,
    };
  },
  mutations: {
    SET_USERINFO(state, step) {
      state.user = step;
    },
    SET_OPTIONS(state, step) {
      state.options = step;
    },
    SET_HEADER_HEIGHT(state, step) {
      state.headerHeight = step;
    },
  },
  actions: {},
});

export default store;
